![]() |
PBHGetFInfoAsync |
||||
Header: | Files.h | Carbon status: | Supported | |
Obtains information about a file.
OSErr PBHGetFInfoAsync ( HParmBlkPtr paramBlock );
A pointer to a basic HFS parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion function.
On output, the result code of the function.
A pointer to a pathname.
On input, a volume specification.
On output, a file reference number.
On input, an index.
On output, the file attributes.
On output, information used by the Finder.
On input, a directory ID; on output, a file ID.
On ouput, the first allocation block of the data fork.
On output, the logical end-of-file of the data fork.
On output, the physical end-of-file of the data fork.
On output, the first allocation block of the resource fork.
On output, the logical end-of-file of the resource fork.
On output, the physical end-of-file of the resource fork.
On output, the date and time of creation.
On output, the date and time of the last modification.
If the value of ioFDirIndex is positive, the PBHGetFInfoAsync function returns information about the file whose directory index is ioFDirIndex on the volume specified by ioVRefNum in the directory specified by ioDirID. You should call PBHGetFInfoAsync just before PBHSetFInfoAsync, so that the current information is present in the parameter block.
If a working directory reference number is specified in ioVRefNum, the File Manager returns information about the file whose directory index is ioFDirIndex in the specified directory.
If the value of ioFDirIndex is negative or 0, the PBHGetFInfoAsync function returns information about the file having the name pointed to by ioNamePtr on the volume specified by ioVRefNum. If the file is open, the reference number of the first access path found is returned in ioFRefNum, and the name of the file is returned in ioNamePtr (unless ioNamePtr is NULL).
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)